<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      >
<head th:replace="fragments/tabhead::headc">
</head>
<!-- start body -->
<body>
<th:block layout:fragment="content">
<!-- start form -->
<div style="margin-top:15px">
  <form class="layui-form search" id="headForm">
  <input type="hidden" id="id" name="tableId" th:value="${obj.id}"/>
  <div class="layui-form-item layui-elem-quote">
    
   <div class="layui-inline">
      <label class="layui-form-label" style="width:100px">字段名</label>
      <div class="layui-input-inline" style="width:100px">
        <input type="tel" name="name" class="layui-input"/>
      </div>
    </div>
	
    <div class="layui-inline" style="float:right;">
      <div class="layui-input-inline" style="width:60px;">
        <button class="layui-btn" id="searchBtn" type="button" >查询</button>
      </div>
      <div class="layui-input-inline" style="width:60px;">
     	<button class="layui-btn" id="saveBtn" type="button" >保存</button>
      </div>
      <div class="layui-input-inline" style="width:60px;">
     	<button class="layui-btn layui-btn-danger" id="removeBtn" type="button" >删除</button>
      </div>
    </div>
  </div>
 </form>
</div>
<!-- end form -->
<div  style="overflow-x:auto;">

<form  class="layui-form" action="" id="contentForm" lay-filter="contentForm">
	
</form>
</div>
<script>
$(function() {
	layui.use(['form','layer','laytpl'], function() {
		var form = layui.form;
		//获取原来的数据
		var formData = $("#headForm").serializeJson();
		$.detailLoad("/sys/table/auth/field/table-fields",formData,function(data){
			$("#contentForm").html(data);
			$("#contentTab tbody").append($("#blankTpl tr").parent().html());
			form.render();
		})
	});
});
</script>





</th:block>
</body><!-- end body -->
</html>